﻿#ifndef LOOKUP_H
#define LOOKUP_H

#include <QMainWindow>
#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlDriver>
#include <QSqlRecord>
#include <QSqlQuery>
#include <QApplication>
#include <QDebug>
#include <QSqlTableModel>
#include <QListWidget>
#pragma execution_character_set("utf-8")

namespace Ui {
class LookUp;
}

class LookUp : public QMainWindow
{
    Q_OBJECT

public:
    explicit LookUp(QWidget *parent = nullptr);
    ~LookUp();

private slots:
    void on_pushButton_clicked();

    void on_dateEdit_dateChanged(const QDate &date);

    void on_listWidget_itemClicked(QListWidgetItem *item);

private:
    Ui::LookUp *ui;
    QSqlTableModel *model;
    void listTable();
};

#endif // LOOKUP_H
